package ts;

import java.util.HashMap;
import java.util.Vector;

public class Metodo {
	public String name;
	public String type;
	public Vector<Variable> parametros;
	//Clase clase;
	public boolean definido;
	public int offset;
	public String etiqueta;
	
	public Metodo() {
		name = null;
		type = null;
		parametros = new Vector<Variable>();
		//clase = null;
		definido = false;
	}
	
	public Metodo(String t,String n,Vector<Variable> p) {
		name = n;
		type = t;
		parametros = p;
		definido = false;
	}
	
	/*public void setEtiqueta(String clase) {
		etiqueta = "l"+name+clase;
	}*/
	
	void print() {
		System.out.println("*METODO*");
		System.out.println("type = "+type);
		System.out.println("name = "+name);
		System.out.println("definido: "+definido);
		for(Variable v:parametros)
			v.print();
		System.out.println("********");
	}
}
